package cn.walls1717.wallsmall.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cn.walls1717.wallsmall.common.utils.R;

/**
 * 订单Feign
 *
 * @author walls1717
 * @since 2022/11/22 17:32
 **/
@FeignClient("wallsmall-order")
public interface OrderFeignService {

    /**
     * 根据orderSn获取订单信息
     *
     * @param orderSn orderSn
     * @return 订单信息
     */
    @GetMapping("/order/order/status/{orderSn}")
    R getOrderStatus(@PathVariable("orderSn") String orderSn);
}
